package com.hechao.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private String msg;
    private Integer code;
    private Object data;




    public Result(Object data) {
        this.data = data;
    }

    public Result(Integer code) {
        this.code = code;
    }

    public Result(String msg, Object data) {
        this.msg = msg;
        this.data = data;
    }

    public Result(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    public Result(String msg) {
        this.msg = msg;
    }

}
